/* 加工厂
 */

import { postRequest, getRequest, getDownload } from '@/lib/axios'

export const processOrderApi = {
  // 加工厂列表
  queryProcessOrderList: (param) => {
    return getRequest('/process_order/list', param)
  },
  // 加工厂仓库商品库存
  processList: (param) => {
    return getRequest('/inventory/process_list', param)
  },
  // 创建
  modifyProcessOrder: (param) => {
    return postRequest('/process_order/add', param)
  },
  // 详情
  detailProcessOrder: (param) => {
    return getRequest('/process_order/detail', param)
  },
  // 导出
  exportXlsx: (param) => {
    return getDownload('/process_order/exportXlsx', param)
  }
}
